//
//  MainAdvertView.h
//  CCBShop
//
//  Created by lijianhua on 14-11-27.
//  Copyright (c) 2014年 CCB. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "AdvertCellView.h"
#import "JHPageControl.h"

@protocol AdvertClickDelegate <NSObject>
- (void)advertClickWithName:(NSString *)name url:(NSString *)url;
@end

@interface MainAdvertView : UIView <AdvertCellClickDelegate,UIScrollViewDelegate>
{
    int pageNumer;//页码
    int page;//当前页
    
    float width;
    float height;
    
    NSMutableArray *advertsArray;
    NSMutableArray *loopAdvertsArr; //n+2
}

@property (nonatomic,strong) id<AdvertClickDelegate> aDelegate;
@property (nonatomic,strong) UIScrollView *imageScrollView;//滚动视图
@property (nonatomic,strong) JHPageControl *pageControl;//滚动圆点
//@property (nonatomic,strong) UIPageControl *pageControl;//滚动圆点

- (id)initWithFrame:(CGRect)frame advertsArray:(NSMutableArray *) advertsArr;

@end
